includeTargets << new File ( "${grailsHome}/scripts/Package.groovy" )
grails package
grails package
includeTargets << new File ( "${grailsHome}/scripts/Package.groovy" )
loadPlugins
- 加载所有的Grails插件并创建GrailsPluginManager实例generateWebXml
- 生成Grails的web.xml发布描述符generateLog4j
- 生成Grails的log4j配置文件packageApp
- 按顺序调用上面3个命令packageApp
是最有用的,因为它会完成所有打包需要的步骤。